class PyEAErrorEvent:
    """
    It represents an error event. 
    It occurs when any test fails.
    
    @author: Danilo Torres.
    """
    
    def __init__(self, msg):
        """
        Initializes the error event.
        @param msg: The error message of the event.
        """
        self.msg = msg
        
    def getErrorMessage(self):
        """
        Returns the error message of this event.
        """
        return self.msg